@extends('layouts.template')

@section('title', '个人中心')

@section('header')
@endsection

@section('content')
    <script>
        $(function () {
            var validator = $("#form").validate({
                rules: {
                    backup_phone:{
                        mobile:true
                    },
                },
                submitHandler: function(form) {
                    form.submit();
                },
            });
        });
    </script>
    <div class="ziliao">
        <form action="" method="post" id="form">
            {{csrf_field()}}
            <div class="ziliao_a mar02">
                <ul>
                    <li><span>紧急号码</span>
                        <p><input name="backup_phone" type="text" class="inp02" placeholder="请填写紧急联系手机号码"
                                  value="{{$detail->backup_phone}}"></p></li>
                </ul>

            </div>
            <div class="ziliao_b mar03"><p>温馨提醒：请填写真实有效的手机号码，以免下单用户联系不上您。 </p>
            </div>
            <button class="but07" type="submit">保存</button>
        </form>
    </div>
@endsection